﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="Contact" %>

<%@ Register Src="Controls/ucFooter.ascx" TagName="ucFooter" TagPrefix="uc" %>
<%@ Register Src="Controls/ucHeader.ascx" TagName="ucHeader" TagPrefix="uc" %>
<%@ Register Src="Controls/ucCenters.ascx" TagName="ucCenters" TagPrefix="uc" %>
<%@ Register Src="Controls/ucConnectUs.ascx" TagName="ucConnection" TagPrefix="uc" %>
<%@ Register Src="Controls/ucReferences.ascx" TagName="ucRef" TagPrefix="uc" %>
<%@ Register Src="Controls/MyCaptcha.ascx" TagName="ucCaptcha" TagPrefix="uc" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Контакты</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <!-- Contact Form CSS files -->
    <link type="text/css" href="css/basic.css" rel="stylesheet" media="screen" />

    <script type="text/javascript" src="js/jquery.js"></script>

    <script type="text/javascript" src="js/jquery.simplemodal.js"></script>

    <script type="text/javascript" src="js/basic.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <%--<ajax:ToolkitScriptManager ID="ToolkitScriptManager1" EnablePartialRendering="true"
        runat="server">
    </ajax:ToolkitScriptManager>--%>
    <div class="b1">
        <div class="maindiv">
            <uc:ucHeader runat="server" ID="ucHeader1" />
            <div class="title5">
                <h1>
                    Контакты</h1>
            </div>
            <div class="newsmaincontent">
                <div class="left1">
                    <%--  <uc:ucConnection runat="server" ID="ConnectUS" />--%>
                    <uc:ucRef runat="server" ID="ref1" />
                    <uc:ucCenters runat="server" ID="Centers" />
                </div>
                <div class="right3">
                    <div class="conactdiv1">
                        <h2 style="font-size: 17px;">
                            Связаться с представителем MedServer</h2>
                        <div class="conactdiv2N">
                            <div class="conactdiv3">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <div class="conactdiv4">
                                            Будем рады ответить на ваши вопросы</div>
                                        <div style="margin-left: 20px; position: absolute;">
                                            <asp:RequiredFieldValidator ID="valName" Font-Size="Smaller" runat="server" Display="Dynamic" ValidationGroup="Mail"
                                                ErrorMessage="поле необходимое для заполнения" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                        </div>
                                        <div class="conactdiv5">
                                            <span>Ваше имя:</span>
                                            <asp:TextBox runat="server" ID="txtName"></asp:TextBox>
                                        </div>
                                        <div style="margin-left: 20px; position: absolute;">
                                            
                                            <asp:RequiredFieldValidator ID="valMail" runat="server" Display="Dynamic" Width="500px" ValidationGroup="Mail"
                                                Font-Size="Smaller" ErrorMessage="поле необходимое для заполнения" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                                        </div>
                                        <div class="conactdiv5">
                                            <span>Ваш email:</span>
                                            <asp:TextBox runat="server" ID="txtEmail"></asp:TextBox>
                                        </div>
                                        <div style="margin-left: 20px; position: absolute;">
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" Font-Size="X-Small" ValidationGroup="Mail"
                                                Display="Dynamic" Width="500px" runat="server" ErrorMessage="неверный почтовый адрес"
                                                ControlToValidate="txtEmail" ValidationExpression="^([0-9a-zA-Z]+[-._+&amp;])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" Font-Size="Smaller" Width="500px" ValidationGroup="Mail"
                                                runat="server" Display="Dynamic" ErrorMessage="поле необходимое для заполнения"
                                                ControlToValidate="txtPhone"></asp:RequiredFieldValidator>
                                        </div>
                                        <div class="conactdiv5">
                                            <span>Телефон для связи с вами:</span>
                                            <asp:TextBox runat="server" Width="320px" ID="txtPhone" onkeypress="ValidateNumeric()"></asp:TextBox>
                                        </div>
                                        <div class="conactdiv5">
                                            <span>По вопросу: </span>
                                            <asp:DropDownList runat="server" ID="ddlQuestions" DataTextField="Question" DataValueField="id">
                                            </asp:DropDownList>
                                        </div>
                                        <div style="margin-left: 20px; position: absolute;">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ValidationGroup="Mail"
                                                Font-Size="Smaller" ErrorMessage="поле необходимое для заполнения" ControlToValidate="txtContent"></asp:RequiredFieldValidator>
                                        </div>
                                        <div class="conactdiv5t">
                                            <span>Текст сообщения <font size="2">(наиболее подробно)</font>:</span>
                                            <asp:TextBox CssClass="conactdiv5t" runat="server" ID="txtContent" TextMode="MultiLine"></asp:TextBox>
                                        </div>
                                        <div style="margin-left:15px;">
                                                <uc:ucCaptcha ID="ccJoin" runat="server" />
                                                <br />
                                                <asp:Label ID="lblCheckResult" runat="server" Text="" Font-Size="Smaller" ForeColor="Red"></asp:Label><br />
                                                <%--<div class="conactdiv6">--%>
                                                <asp:ImageButton CssClass="conactdiv6" ImageUrl="images/1_Contact_07.png" runat="server"
                                                    ID="btnSend" OnClick="btnSend_Click" ValidationGroup="Mail" />
                                            </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <div class="conactdiv5">
                                    <span style="font-size: 14px">- поля обязательны к заполнению</span></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <uc:ucFooter runat="server" ID="Footer1" />
    </div>
    <!-- modal content -->
    <div id="basicModalContent" style="display: none;">
        <h3>
            Спасибо</h3>
        <p>
            Ваше сообщение успешно отправлено</p>
    </div>
    </form>
</body>
</html>
